package com.etime.shycourse.services.salers.impl;

import com.etime.shycourse.services.salers.interfaces.TakesliceServices;
import com.etime.shycourse.dao.TakesliceMapper;
import com.etime.shycourse.pojo.Takeslice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wb
 * @since 2022-05-24
 */
@Service
public class TakesliceServiceImpl implements TakesliceServices {
    @Autowired
    private TakesliceMapper mapper;

    /**
     * 查询 系统中统一的提成比例
     *
     * @return Takeslice
     */
    @Override
    public Takeslice selectByOne() {
        return mapper.selectList(null).get(0);
    }

    /**
     * 根据id修改 系统中统一的提成比例
     *
     * @param takeslice
     * @return Int
     */
    @Override
    public Integer updateById(Takeslice takeslice) {
        return mapper.updateById(takeslice);
    }
}
